package com.mspbots.cw.request;

import com.mspbots.dto.BaseDTO;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * com.mspbots.cw.request.TenantTeamsUserDTO
 *
 * @author Jun Zhou
 * @date 12:21 2019/7/3
 **/
@Data
public class TenantTeamsUserDTO implements BaseDTO {

    private Long id;
    private Long tenantId;
    private String teamsUserId;
    private String teamsDisplayName;
    private String teamsMail;
    private Boolean isAdmin;
    private LocalDateTime createDate;

    public TenantTeamsUserDTO() {
    }

    public TenantTeamsUserDTO(Long tenantId, String teamsUserId, String teamsDisplayName, String teamsMail) {
        this.tenantId = tenantId;
        this.teamsUserId = teamsUserId;
        this.teamsDisplayName = teamsDisplayName;
        this.teamsMail = teamsMail;
        this.isAdmin = false;
    }

    public TenantTeamsUserDTO(Long tenantId, String teamsUserId, String teamsDisplayName, String teamsMail, Boolean isAdmin) {
        this.tenantId = tenantId;
        this.teamsUserId = teamsUserId;
        this.teamsDisplayName = teamsDisplayName;
        this.teamsMail = teamsMail;
        this.isAdmin = isAdmin;
    }

}
